package org.cn.zhaozhx.util.download;

import java.util.Properties;

public class TestDownloadMain {
    public static void main(String[] args) { 
        /*DownloadInfo bean = new DownloadInfo("http://i7.meishichina.com/Health/UploadFiles/201109/201 1092116224363.jpg");
                                             System.out.println(bean);
                                             BatchDownloadFile down = new BatchDownloadFile(bean); new Thread(down).start();*/
        //DownloadUtils.download("http://i7.meishichina.com/Health/Upload Files/201109/2011092116224363.jpg");
        String proxy = "proxy-bj1.petrochina";
        String port = "8080";
        Properties systemProperties = System.getProperties();
        systemProperties.setProperty("http.proxyHost", proxy);
        systemProperties.setProperty("http.proxyPort", port);
        DownloadUtils
            .download("http://wpc.29c4.edgecastcdn.net/8029C4/downloads/software/confluence/downloads/atlassian-confluence-4.2.7-war.tar.gz",
                      "atlassian-confluence-4.2.7-war.tar.gz",
                      "d:/temp",
                      5);
    }
}
